September 15, 2019

Welcome to my presentation!

We are going to plot some features of a regression anlysis using the data set mtcars and regressing the variable mpg against the regrssors wt and am.

Specifically, we will look at:

  • A Table of the structure of the data mtcars
  • A Scatterplot between mpg and two egressors: wt and am
  • A Histogram of the residuals of the linear model created by regressing mpg against wt and am

Data Overview

The complete data set has the following format:

mpg cyl disp hp drat wt qsec vs am gear carb
Mazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4
Mazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4
Datsun 710 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1
Hornet 4 Drive 21.4 6 258 110 3.08 3.215 19.44 1 0 3 1

Relationship between mpg, wt and am

Histogram of residuals